<?php

namespace App\Model;

class UsersModel extends BaseModel
{
    protected $table = 'users';

    protected $primaryKey = 'user_id';
    protected $fillable = [
        'phone',
        'password',
        'nickname',
        'score',
        'balance',
        'id_card',
        'real_name',
        'spread_id',
        'pay_pass',
        'real_name',
        'wx_num',
        'zf_nums',
        'is_hexiao'
    ];

    public function user_login_info(): \Illuminate\Database\Eloquent\Relations\HasOne
    {
        return $this->hasOne(UserLoginModel::class,'user_login_id','user_login_id');
    }
}
